<br/><br/><br/>
<center>
<?=$pagenation_links ?>
<table width="600px">
<tr>
		<th>S.No.</th>
		<th>Customer Name</th>
		<th>Service Date</th>
		<th>Ordered On</th>
		<th>Order Status</th>
	</tr>
<?php
$count = 1;
?>
<?php 
		$this->load->helper('date');
		$datestring = "%m/%d/%Y";
//		$order = mdate($datestring);
?>

<?php foreach($query->result() as $rows):?>
<?/*=$rows->servicetype;*/?>
		<tr>
			<td > <?=$count;?></td>
			<td><?=anchor('admin/orders/show/'.$rows->id.'/'.$rows->oid,$rows->user_name);?></td>
			<td><?=$rows->date;?></td>
			<td><?=mdate($datestring,$rows->order_date);?></td>
			<td><?=$rows->status;?></td>
		</tr>
<?php $count ++; endforeach;?>

</table>
</center>
